package com.nengchuan.eic.nceconomy.entity.vo;

import com.eic.psm.sdk.vo.CoreSectionDepartInfoVo;
import com.nengchuan.eic.nceconomy.constant.DepartInfoEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 功能描述: 标段-项目人员信息
 *
 * @Author: liurui
 * @Date: 2020/5/18 0018 下午 4:28
 */
@Data
@NoArgsConstructor
public class DepartInfo {

    @ApiModelProperty("标段id")
    private Long id;
    @ApiModelProperty("部门名称")
    private String departName;
    @ApiModelProperty("部门Id")
    private Long departId;
    @ApiModelProperty("岗位名称")
    private String postName;
    @ApiModelProperty("用户名称")
    private String userName;
    @ApiModelProperty("手机号码")
    private String mobile;

    public DepartInfo(CoreSectionDepartInfoVo coreSectionDepartInfoVo) {
        this.postName = coreSectionDepartInfoVo.getPostName();
        this.userName = coreSectionDepartInfoVo.getUserName();
        this.mobile = coreSectionDepartInfoVo.getMobile();
        this.departName = DepartInfoEnum.getTextByCode(coreSectionDepartInfoVo.getPostId());
        this.id = coreSectionDepartInfoVo.getId();
        this.departId=coreSectionDepartInfoVo.getDepartId();
    }

}
